package com.wangxc.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.wangxc.core.IDemoService;
import org.springframework.stereotype.Service;

/**
 * @author Wang
 */
@Service
public class HelloService {

    @Reference(version = "1.0.0.1")
    private IDemoService demoService;

    public String sayHello(String hello) {
        System.out.println(hello + "===========================");
        return demoService.sayHello(hello);
    }

    public String test(String a, int b) {
        a = a + b;
        return a + b;
    }

}

